package com.credithc.customers.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author zhukai
 */
@SpringBootApplication(scanBasePackages = {"com.credithc"})
@EnableEurekaClient
@EnableFeignClients("com.credithc")
@MapperScan(basePackages = "com.credithc.customers.base.mapper")
@EnableTransactionManagement
@EnableScheduling
@EnableAspectJAutoProxy(exposeProxy = true)
@Slf4j
public class CustomersApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomersApiApplication.class, args);
        log.info("当前customers-api版本号:【customers-api-202106281400】");
    }
}
